package practice_02;

import java.util.Random;

public class Skill {
    private String skill_name; //技能名
    private String skill_intro; //技能描述
    private int skill_attack_min; //技能伤害下限
    private int skill_attack_up; //技能伤害向上波动
    Random random = new Random();

    public Skill(String skill_name, String skill_intro, int skill_attack_min, int skill_attack_up) {
        this.skill_name = skill_name;
        this.skill_intro = skill_intro;
        this.skill_attack_min = skill_attack_min;
        this.skill_attack_up = skill_attack_up;

    }

    public String getSkill_name() {
        return skill_name;
    }

    public void setSkill_name(String skill_name) {
        this.skill_name = skill_name;
    }

    public int getSkill_attack_min() {
        return skill_attack_min;
    }

    public void setSkill_attack_min(int skill_attack_min) {
        this.skill_attack_min = skill_attack_min;
    }

    public int getSkill_attack_up() {
        return skill_attack_up;
    }

    public void setSkill_attack_up(int skill_attack_up) {
        this.skill_attack_up = skill_attack_up;
    }

    public String getSkill_intro() {
        return skill_intro;
    }

    public void setSkill_intro(String skill_intro) {
        this.skill_intro = skill_intro;
    }

    public int getSkill_attack() {

        return random.nextInt(this.skill_attack_min + this.skill_attack_up) + this.skill_attack_min;
    }

}
